home *** CD-ROM | disk | FTP | other *** search
- Path: aimnet.aimnet.com!not-for-mail
- From: jmcneill@aimnet.com (Jonathan S. McNeill)
- Newsgroups: comp.lang.c
- Subject: Re: Questions about include files, and make file error
- Date: 29 Mar 1996 09:59:43 -0800
- Organization: Aimnet Corporation
- Sender: jmcneill@aimnet.com
- Message-ID: <4jh8ef$od8@aimnet.aimnet.com>
- References: <4jfqvn$gb6@sue.cc.uregina.ca>
- NNTP-Posting-Host: aimnet.aimnet.com
-
- In article <4jfqvn$gb6@sue.cc.uregina.ca>,
- Shayne G. Wright <wright@HERCULES.CS.UREGINA.CA> wrote:
-
- > The first question is, can it be setup so that
- > an #include <ncurses.h> statement, or similar, would
- > cause the compiler to look in /usr/include/ncurses
- > or any other subdirectory, or do I have to make use of
- > symbolic links and/or move the *.h files to /usr/include/
-
- Well, unless I misunderstand the question, there are a few ways to do this.
- If the include file directory is a subdirectory of /usr/include, say,
- /usr/include/sys, for example, just use
-
- #include <sys/myheader.h>
-
- You could also use:
-
- #include "/usr/include/sys/myheader.h"
-
- Another option would be to let the compiler find your header for you with:
-
- #include "myheader.h"
-
- and use the -I option of cc (or equivalent) to specify the search path
- for header files.
-
- R/
- Jon McNeill
- jmcneill@aimnet.com
-
-